﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yes.Domain.Entity
{
    [Table("File")]
    public  class FileEntity : EntityBase
    {
        /// <summary>
        /// 文件名
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 后缀
        /// </summary>
        [StringLength(20)]
        public string Ext { get; set; }

        /// <summary>
        /// 文件地址
        /// </summary>
        [StringLength(200)]
        public string Path { get; set; }

        /// <summary>
        /// 所有者
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// md5
        /// </summary>
        [StringLength(32)]
        public string Md5 { get; set; }

        /// <summary>
        /// 文件类型
        /// </summary>
        [StringLength(20)]
        public string Type { get; set; }
    }
}
